﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="ChiTietSP.aspx.cs" Inherits="Sport_Shop.ChiTietSP" %>

<asp:Content runat="server" ContentPlaceHolderID="MainContent" ID="BodyContent">
    <style>
        .buttonform
        {
	        background: black;
	        color: white;
	        height: 30px;
	        width: 270px;
	        font-weight:bold;
	        display:inline;
	        font-size:14px;
        }
        .buttonform:hover
        {
	        color: black;
	        background-color: white;
        }
    </style>
    <center><asp:DataList ID="dlChiTietSP" runat="server" AlternatingItemStyle-HorizontalAlign="NotSet" OnItemCommand="dlChiTietSP_ItemCommand">
        <ItemTemplate>
            <table>
                <tr>
                    <td style="text-align:center;" bgcolor="gray" height="40px" colspan="2"  bgcolor="gray">
                        <asp:Label ID="lbTenSP" runat="server" Text='<%# Eval("TenSP") %>' Font-Bold="True" Font-Size="20px" ForeColor="White" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Image ID="imgHinhSP" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' CssClass="resizeSP"/>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:left; text-indent:5px;" bgcolor="gray" height="30px" width="50%">
                       <asp:Label ID="Label3" runat="server" Text="Giá" Font-Bold="True" Font-Size="15px" ForeColor="White" />
                    </td>
                    <td style="text-align:left; text-indent:5px;" bgcolor="gray" height="30px" width="50%">
                       <asp:Label ID="lbGia" runat="server" Text='<%# Eval("DonGia") %>' Font-Bold="True" Font-Size="15px" ForeColor="White" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:left; text-indent:5px;" bgcolor="gray" height="30px">
                         <asp:Label ID="Label4" runat="server" Text="Màu" Font-Bold="True" Font-Size="15px" ForeColor="White" />
                    </td>
                    <td style="text-align:left; text-indent:5px;" bgcolor="gray" height="30px">
                         <asp:Label ID="Label5" runat="server" Text='<%# Eval("MauSac") %>' Font-Bold="True" Font-Size="15px" ForeColor="White" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:left;" colspan="2">
                        <asp:Button runat="server" id="DatHang" CssClass="buttonform" BorderWidth="0px" Text="Đặt hàng" CommandName="DatHang" />
                    </td>
                                
                </tr>
                <tr>
                    <td style="text-align:left;" colspan="2">
                        <asp:Button runat="server" id="Back" CssClass="buttonform" BorderWidth="0px" Text="Trờ về" OnClick="Back_Click"/>
                    </td>
                                
                </tr>
             </table>
        </center>    
        </ItemTemplate>
    </asp:DataList>
</asp:Content>
